package com.cykj.order.domain.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

/**
 * 添加购物车商品DTO
 * 
 * @author cykj
 * @date 2025-01-20
 */
public class AddCartItemDto {
    
    /** 购物车ID */
    @NotNull(message = "购物车ID不能为空")
    private Integer cartId;
    
    /** 商品ID */
    @NotNull(message = "商品ID不能为空")
    private Integer productId;
    


    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "AddCartItemDto{" +
                "cartId=" + cartId +
                ", productId=" + productId +
                '}';
    }
}
